home *** CD-ROM | disk | FTP | other *** search
- /*
- File: VVFileMacFile.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __VVFILEMACFILE__
- #define __VVFILEMACFILE__
-
- #ifndef __VIRTUALMACFILE__
- #include "VirtualMacFile.h"
- #endif
-
- class TVirtualFile;
-
- /***********************************|****************************************/
-
- class TVVFileMacFile : public TVirtualMacFile
- {
- public:
- TVVFileMacFile(const Str31 fileName);
- TVVFileMacFile(TVirtualFile* dfFile,TVirtualFile* rfFile, const Str31 fileName);
- virtual ~TVVFileMacFile();
-
- virtual OSErr Open ();
- virtual OSErr Close ();
-
- virtual OSErr ReadData (void* buffer,long& count,ForkType whichFork);
- virtual OSErr WriteData (const void* buffer, long& count, ForkType whichFork);
-
- virtual OSErr SetEnd (long logEof, ForkType whichFork);
- virtual OSErr GetEnd (long& logEof, ForkType whichFork) const;
-
- virtual OSErr SetPosition (short posMode, long posOff, ForkType whichFork);
- virtual OSErr GetPosition (long& filePos,ForkType whichFork) const;
-
- virtual OSErr SetFinderInfo (const FInfo& finderInfo);
- virtual OSErr GetFinderInfo (FInfo& finderInfo) const;
-
- virtual OSErr GetDate (unsigned long& dateTime,WhichDateType whichDate) const;
- virtual OSErr SetDate (unsigned long dateTime,WhichDateType whichDate);
-
- virtual void SetUserRef(long ref);
- virtual long GetUserRef() const;
-
- virtual OSErr GetSpec ( FSSpec& ) const;
- virtual OSErr SetSpec ( const FSSpec& );
-
- private: TVVFileMacFile ( const TVVFileMacFile& );
- TVVFileMacFile& operator = ( const TVVFileMacFile& );
-
- FSSpec fSpec;
- TVirtualFile* fDataFile;
- TVirtualFile* fResourceFile;
- FInfo fFinderInfo;
- long fCreationDate;
- Boolean fRemoveRefs;
- unsigned long fOpenCount;
- };
-
- /***********************************|****************************************/
-
- #endif // __VVFILEMACFILE__
-